﻿<ResourceDictionary 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:Controls="clr-namespace:PSE.Deployment.ConfigurationManager.Controls;assembly=PSE.Deployment.ConfigurationManager.Controls"
	mc:Ignorable="d">
	<Style x:Key="TreeViewItemFocusVisual">
		<Setter Property="Control.Template">
			<Setter.Value>
				<ControlTemplate>
					<Rectangle/>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="CheckRadioFocusVisual">
		<Setter Property="Control.Template">
			<Setter.Value>
				<ControlTemplate>
					<Rectangle SnapsToDevicePixels="true" Margin="14,0,0,0" Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1"/>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="EmptyCheckBoxFocusVisual">
		<Setter Property="Control.Template">
			<Setter.Value>
				<ControlTemplate>
					<Rectangle SnapsToDevicePixels="true" Margin="1" Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1"/>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="ExpandCollapseToggleStyle" TargetType="{x:Type ToggleButton}">
		<Setter Property="Focusable" Value="False"/>
		<Setter Property="Width" Value="19"/>
		<Setter Property="Height" Value="13"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ToggleButton}">
					<Border Width="19" Height="13" Background="Transparent">
						<Border Width="9" Height="9" SnapsToDevicePixels="true" BorderBrush="{DynamicResource BrushDarkBlue01}" BorderThickness="1" CornerRadius="1">
							<Border.Background>
								<LinearGradientBrush EndPoint="1,1" StartPoint="0,0">
									<GradientStop Color="#FFD4D6D4" Offset="0"/>
									<GradientStop Color="#FFFDFDFD" Offset="1"/>
								</LinearGradientBrush>
							</Border.Background>
							<Path Margin="1,1,1,1" x:Name="ExpandPath" Data="M 0 2 L 0 3 L 2 3 L 2 5 L 3 5 L 3 3 L 5 3 L 5 2 L 3 2 L 3 0 L 2 0 L 2 2 Z">
								<Path.Fill>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FF3D82E0" Offset="0"/>
										<GradientStop Color="#FF05172F" Offset="1"/>
									</LinearGradientBrush>
								</Path.Fill>
							</Path>
						</Border>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsChecked" Value="True">
							<Setter Property="Data" TargetName="ExpandPath" Value="M 0 2 L 0 3 L 5 3 L 5 2 Z"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="RadioButtonSetup" TargetType="{x:Type RadioButton}">
		<Setter Property="Foreground" Value="{DynamicResource BrushRadioButtonForeground}"/>
		<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
		<Setter Property="Height" Value="21"/>
		<Setter Property="Width" Value="100"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type RadioButton}">
					<BulletDecorator Background="#00FFFFFF">
						<BulletDecorator.Bullet>
							<Grid VerticalAlignment="Center" Width="21" Height="20">
								<Border Width="17" Height="17" Padding="2,2,2,2">
									<Border x:Name="Border" Width="13" Height="13" Background="{DynamicResource BrushRadioButtonBackground}" BorderBrush="{DynamicResource BrushRadioButtonBorder}" BorderThickness="1,1,1,1" CornerRadius="6,6,6,6">
										<Grid>
											<Ellipse HorizontalAlignment="Left" Margin="2,2,0,0" x:Name="CheckMark" VerticalAlignment="Top" Width="7.063" Height="7.062" Fill="{DynamicResource BrushRadioButtonCheckMarkFill}" Stroke="{x:Null}"/>
											<Ellipse Visibility="Collapsed" HorizontalAlignment="Left" x:Name="Path" VerticalAlignment="Top" Width="11.2" Height="11.2" Fill="{x:Null}" StrokeThickness="2"/>
										</Grid>
									</Border>
								</Border>
								<Rectangle SnapsToDevicePixels="True" Visibility="Collapsed" x:Name="RectangleBullet" VerticalAlignment="Center" Width="17" Height="17" Stroke="{DynamicResource BrushCheckBoxBorderFocused}" StrokeDashArray="2 2" StrokeThickness="1"/>
							</Grid>
						</BulletDecorator.Bullet>
						<Grid Height="20">
							<Rectangle SnapsToDevicePixels="True" Visibility="Collapsed" Margin="2,2,2,2" x:Name="RectangleContent" VerticalAlignment="Center" Height="15" Stroke="{DynamicResource BrushRadioButtonBorderFocused}" StrokeDashArray="2 2" StrokeThickness="1"/>
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="5,-0.7,0,0" Style="{DynamicResource ControlFont}" VerticalAlignment="Center" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" RecognizesAccessKey="True"/>
						</Grid>
					</BulletDecorator>
					<ControlTemplate.Triggers>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsMouseOver" Value="True"/>
								<Condition Property="IsMouseCaptured" Value="False"/>
							</MultiTrigger.Conditions>
							<Setter Property="Visibility" TargetName="Path" Value="Visible"/>
							<Setter Property="Width" TargetName="Path" Value="10.989"/>
							<Setter Property="Height" TargetName="Path" Value="10.997"/>
							<Setter Property="Stroke" TargetName="Path" Value="{DynamicResource BrushRadioButtonBackgroundHover}"/>
						</MultiTrigger>
						<Trigger Property="IsFocused" Value="True">
							<Setter Property="Visibility" TargetName="RectangleContent" Value="Visible"/>
						</Trigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsFocused" Value="True"/>
								<Condition Property="Content" Value=""/>
							</MultiTrigger.Conditions>
							<Setter Property="Visibility" TargetName="RectangleContent" Value="Collapsed"/>
							<Setter Property="Visibility" TargetName="RectangleBullet" Value="Visible"/>
						</MultiTrigger>
						<Trigger Property="IsMouseCaptured" Value="True">
							<Setter Property="Background" TargetName="Border" Value="{DynamicResource BrushRadioButtonBackgroundPressed}"/>
						</Trigger>
						<Trigger Property="IsChecked" Value="False">
							<Setter Property="Visibility" TargetName="CheckMark" Value="Collapsed"/>
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter Property="Foreground" Value="{DynamicResource BrushRadioButtonForegroundDisabled}"/>
							<Setter Property="BorderBrush" TargetName="Border" Value="{DynamicResource BrushRadioButtonBorderDisabled}"/>
							<Setter Property="Background" TargetName="Border" Value="{DynamicResource BrushRadioButtonBackgroundDisabled}"/>
							<Setter Property="Fill" TargetName="CheckMark" Value="{DynamicResource BrushRadioButtonCheckMarkFillDisabled}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="CheckBoxSetup" TargetType="{x:Type CheckBox}">
		<Setter Property="FocusVisualStyle" Value="{DynamicResource CheckRadioFocusVisual}"/>
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"/>
		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
		<Setter Property="BorderBrush" Value="{x:Static Microsoft_Windows_Themes:ClassicBorderDecorator.ClassicBorderBrush}"/>
		<Setter Property="BorderThickness" Value="2"/>
		<Setter Property="Padding" Value="2,0,0,0"/>
		<Setter Property="FocusVisualStyle" Value="{DynamicResource EmptyCheckBoxFocusVisual}"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type CheckBox}">
					<BulletDecorator SnapsToDevicePixels="true" Background="Transparent" Height="Auto">
						<BulletDecorator.Bullet>
							<Microsoft_Windows_Themes:ClassicBorderDecorator x:Name="CheckMark" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderStyle="Sunken" BorderThickness="{TemplateBinding BorderThickness}" Margin="0,4,0,0" VerticalAlignment="Center">
								<Path FlowDirection="LeftToRight" Margin="1,1,1,1" x:Name="CheckMarkPath" Width="7" Height="7" Fill="{TemplateBinding Foreground}" Data="M 0 2.0 L 0 4.8 L 2.5 7.4 L 7.1 2.8 L 7.1 0 L 2.5 4.6 Z"/>
							</Microsoft_Windows_Themes:ClassicBorderDecorator>
						</BulletDecorator.Bullet>
						<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" VerticalAlignment="Center"/>
					</BulletDecorator>
					<ControlTemplate.Triggers>
						<Trigger Property="IsChecked" Value="false">
							<Setter Property="Visibility" TargetName="CheckMarkPath" Value="Hidden"/>
						</Trigger>
						<Trigger Property="IsChecked" Value="{x:Null}">
							<Setter Property="Background" TargetName="CheckMark" Value="{DynamicResource {x:Static SystemColors.ControlLightLightBrushKey}}"/>
							<Setter Property="Fill" TargetName="CheckMarkPath" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
						</Trigger>
						<Trigger Property="IsPressed" Value="true">
							<Setter Property="Background" TargetName="CheckMark" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
						</Trigger>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Background" TargetName="CheckMark" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
							<Setter Property="Fill" TargetName="CheckMarkPath" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="TreeViewItemSetup" TargetType="TreeViewItem">
		<Setter Property="IsSelected" Value="{Binding IsInitiallySelected, Mode=OneTime}" />
		<Setter Property="KeyboardNavigation.AcceptsReturn" Value="True" />
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
		<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
		<Setter Property="Padding" Value="1,0,0,0"/>
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
		<Setter Property="FocusVisualStyle" Value="{DynamicResource TreeViewItemFocusVisual}"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TreeViewItem}">
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto"/>
							<RowDefinition/>
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition MinWidth="19" Width="Auto"/>
							<ColumnDefinition Width="Auto"/>
							<ColumnDefinition Width="*"/>
						</Grid.ColumnDefinitions>
						<ToggleButton x:Name="Expander" Style="{DynamicResource ExpandCollapseToggleStyle}" ClickMode="Press" IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}"/>
						<Border SnapsToDevicePixels="true" x:Name="Bd" Grid.Column="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" CornerRadius="3,3,3,3">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" x:Name="PART_Header" ContentSource="Header" Style="{DynamicResource ControlFont}" />
						</Border>
						<ItemsPresenter x:Name="ItemsHost" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1"/>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger Property="IsExpanded" Value="false">
							<Setter Property="Visibility" TargetName="ItemsHost" Value="Collapsed"/>
						</Trigger>
						<Trigger Property="HasItems" Value="false">
							<Setter Property="Visibility" TargetName="Expander" Value="Hidden"/>
						</Trigger>
						<Trigger Property="IsSelected" Value="true">
							<Setter Property="CornerRadius" TargetName="Bd" Value="3,3,3,3"/>
							<Setter Property="Margin" TargetName="PART_Header" Value="0,0,0,0"/>
							<Setter Property="Background" TargetName="Bd">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFFFFFFF" Offset="0"/>
										<GradientStop Color="#FF568FF4" Offset="1"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
						</Trigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsSelected" Value="True"/>
								<Condition Property="IsEnabled" Value="False"/>
							</MultiTrigger.Conditions>
							<Setter Property="Background" TargetName="Bd">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFFFFFFF" Offset="0"/>
										<GradientStop Color="#FFD9DADC" Offset="1"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter Property="CornerRadius" TargetName="Bd" Value="3,3,3,3"/>
						</MultiTrigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsSelected" Value="true"/>
								<Condition Property="IsSelectionActive" Value="false"/>
							</MultiTrigger.Conditions>
							<Setter Property="Background" TargetName="Bd">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFFFFFFF" Offset="0"/>
										<GradientStop Color="#FFD9DADC" Offset="1"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
						</MultiTrigger>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<ControlTemplate x:Key="CheckBoxControlTemplateSetup" TargetType="{x:Type CheckBox}">
		<BulletDecorator SnapsToDevicePixels="True" Background="#00FFFFFF">
			<BulletDecorator.Bullet>
				<Grid>
					<Border VerticalAlignment="Center" Width="21" Height="21">
						<Border x:Name="Border" Width="13" Height="13" Background="{DynamicResource BrushCheckBoxBackground}" BorderBrush="{DynamicResource BrushCheckBoxBorder}" BorderThickness="1,1,1,1" CornerRadius="2,2,2,2">
							<Grid>
								<Path Visibility="Collapsed" HorizontalAlignment="Right" x:Name="Path" VerticalAlignment="Bottom" Width="10.989" Height="10.997" Stretch="Fill" Stroke="{DynamicResource BrushCheckBoxBackgroundHover}" StrokeThickness="1.7" Data="M0.5,1.25 C0.5,0.83578644 0.83578644,0.5 1.25,0.5 L9.75,0.5 C10.164214,0.5 10.5,0.83578644 10.5,1.25 L10.5,9.75 C10.5,10.164214 10.164214,10.5 9.75,10.5 L1.25,10.5 C0.83578644,10.5 0.5,10.164214 0.5,9.75 z"/>
								<Rectangle Visibility="Collapsed" HorizontalAlignment="Right" x:Name="IndeterminateHover" VerticalAlignment="Bottom" Width="13" Height="13" Fill="{DynamicResource BrushCheckBoxIndeterminateHover}" StrokeThickness="0" RadiusX="2" RadiusY="2"/>
								<Rectangle HorizontalAlignment="Left" Margin="2,2,2,2" x:Name="CheckMark" VerticalAlignment="Bottom" Width="6.696" Height="6.695" Fill="{DynamicResource BrushCheckBoxCheckMarkFill}" Stroke="{x:Null}" RadiusX="2" RadiusY="2"/>
								<Path HorizontalAlignment="Left" Margin="1.875,2,0,0" x:Name="Indeterminate" VerticalAlignment="Top" Width="7.3" Height="7" Fill="{DynamicResource BrushCheckBoxCheckMarkFill}" Stretch="Fill" Stroke="{x:Null}" Data="M161.25705,207.39175 L160.32008,209.25104 162.87637,211.61756 167.46832,207.1683 167.43463,204.89653 162.8768,209.61649 z"/>
							</Grid>
						</Border>
					</Border>
					<Rectangle SnapsToDevicePixels="True" Visibility="Collapsed" x:Name="RectangleBullet" VerticalAlignment="Center" Width="17" Height="17" Stroke="{DynamicResource BrushCheckBoxBorderFocused}" StrokeDashArray="2 2" StrokeThickness="1"/>
				</Grid>
			</BulletDecorator.Bullet>
			<Grid Height="21">
				<Rectangle SnapsToDevicePixels="True" Visibility="Collapsed" Margin="2,2,2,2" x:Name="RectangleContent" VerticalAlignment="Center" Height="15" Stroke="{DynamicResource BrushCheckBoxBorderFocused}" StrokeDashArray="2 2" StrokeThickness="1"/>
				<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="5,-0.7,0,0" Style="{DynamicResource ControlFont}" VerticalAlignment="Center" TextElement.Foreground="{TemplateBinding Foreground}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" RecognizesAccessKey="True"/>
			</Grid>
		</BulletDecorator>
		<ControlTemplate.Triggers>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsMouseOver" Value="True"/>
					<Condition Property="IsMouseCaptured" Value="False"/>
					<Condition Property="IsChecked" Value="True"/>
				</MultiTrigger.Conditions>
				<Setter Property="Visibility" TargetName="Path" Value="Visible"/>
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsMouseOver" Value="True"/>
					<Condition Property="IsMouseCaptured" Value="False"/>
					<Condition Property="IsChecked" Value="False"/>
				</MultiTrigger.Conditions>
				<Setter Property="Visibility" TargetName="Path" Value="Visible"/>
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsMouseOver" Value="True"/>
					<Condition Property="IsMouseCaptured" Value="False"/>
					<Condition Property="IsChecked" Value="{x:Null}"/>
				</MultiTrigger.Conditions>
				<Setter Property="Visibility" TargetName="IndeterminateHover" Value="Visible"/>
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsFocused" Value="True"/>
					<Condition Property="Content" Value=""/>
				</MultiTrigger.Conditions>
				<Setter Property="Visibility" TargetName="RectangleContent" Value="Collapsed"/>
				<Setter Property="Visibility" TargetName="RectangleBullet" Value="Visible"/>
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsFocused" Value="True"/>
					<Condition Property="Content" Value="{x:Null}"/>
				</MultiTrigger.Conditions>
				<Setter Property="Visibility" TargetName="RectangleContent" Value="Collapsed"/>
				<Setter Property="Visibility" TargetName="RectangleBullet" Value="Visible"/>
			</MultiTrigger>
			<Trigger Property="IsMouseCaptured" Value="True">
				<Setter Property="Background" TargetName="Border" Value="{DynamicResource BrushCheckBoxBackgroundPressed}"/>
			</Trigger>
			<Trigger Property="IsChecked" Value="False">
				<Setter Property="Visibility" TargetName="CheckMark" Value="Collapsed"/>
				<Setter Property="Visibility" TargetName="Indeterminate" Value="Collapsed"/>
			</Trigger>
			<Trigger Property="IsChecked" Value="True">
				<Setter Property="Visibility" TargetName="CheckMark" Value="Collapsed"/>
			</Trigger>
			<Trigger Property="IsChecked" Value="{x:Null}">
				<Setter Property="Visibility" TargetName="Indeterminate" Value="Collapsed"/>
			</Trigger>
			<Trigger Property="IsEnabled" Value="False">
				<Setter Property="Foreground" Value="{DynamicResource BrushCheckBoxForegroundDisabled}"/>
				<Setter Property="BorderBrush" TargetName="Border" Value="{DynamicResource BrushCheckBoxBorderDisabled}"/>
				<Setter Property="Background" TargetName="Border" Value="{DynamicResource BrushCheckBoxBackgroundDisabled}"/>
				<Setter Property="Fill" TargetName="CheckMark" Value="{DynamicResource BrushCheckBoxCheckMarkFillDisabled}"/>
				<Setter Property="Fill" TargetName="Indeterminate" Value="{DynamicResource BrushCheckBoxCheckMarkFillDisabled}"/>
			</Trigger>
		</ControlTemplate.Triggers>
	</ControlTemplate>
	<ControlTemplate x:Key="CheckBoxControlTemplateSetupPartial" TargetType="{x:Type CheckBox}">
		<BulletDecorator SnapsToDevicePixels="True" Background="#00FFFFFF">
			<BulletDecorator.Bullet>
				<Grid>
					<Border VerticalAlignment="Center" Width="21" Height="21">
						<Border x:Name="Border" Width="13" Height="13" Background="{DynamicResource BrushCheckBoxBackgroundPartial}" BorderBrush="{DynamicResource BrushCheckBoxBorder}" BorderThickness="1,1,1,1" CornerRadius="2,2,2,2">
							<Grid>
								<Path Visibility="Collapsed" HorizontalAlignment="Right" x:Name="Path" VerticalAlignment="Bottom" Width="10.989" Height="10.997" Stretch="Fill" Stroke="{DynamicResource BrushCheckBoxBackgroundHover}" StrokeThickness="1.7" Data="M0.5,1.25 C0.5,0.83578644 0.83578644,0.5 1.25,0.5 L9.75,0.5 C10.164214,0.5 10.5,0.83578644 10.5,1.25 L10.5,9.75 C10.5,10.164214 10.164214,10.5 9.75,10.5 L1.25,10.5 C0.83578644,10.5 0.5,10.164214 0.5,9.75 z"/>
								<Rectangle Visibility="Collapsed" HorizontalAlignment="Right" x:Name="IndeterminateHover" VerticalAlignment="Bottom" Width="13" Height="13" Fill="{DynamicResource BrushCheckBoxIndeterminateHover}" StrokeThickness="0" RadiusX="2" RadiusY="2"/>
								<Rectangle HorizontalAlignment="Left" Margin="2,2,2,2" x:Name="Indeterminate" VerticalAlignment="Bottom" Width="6.696" Height="6.695" Fill="{DynamicResource BrushCheckBoxCheckMarkFill}" Stroke="{x:Null}" RadiusX="2" RadiusY="2"/>
								<Path HorizontalAlignment="Left" Margin="1.875,2,0,0" x:Name="CheckMark" Visibility="Collapsed" VerticalAlignment="Top" Width="7.3" Height="7" Fill="{DynamicResource BrushCheckBoxCheckMarkFill}" Stretch="Fill" Stroke="{x:Null}" Data="M161.25705,207.39175 L160.32008,209.25104 162.87637,211.61756 167.46832,207.1683 167.43463,204.89653 162.8768,209.61649 z"/>
							</Grid>
						</Border>
					</Border>
					<Rectangle SnapsToDevicePixels="True" Visibility="Collapsed" x:Name="RectangleBullet" VerticalAlignment="Center" Width="17" Height="17" Stroke="{DynamicResource BrushCheckBoxBorderFocused}" StrokeDashArray="2 2" StrokeThickness="1"/>
				</Grid>
			</BulletDecorator.Bullet>
			<Grid Height="21">
				<Rectangle SnapsToDevicePixels="True" Visibility="Collapsed" Margin="2,2,2,2" x:Name="RectangleContent" VerticalAlignment="Center" Height="15" Stroke="{DynamicResource BrushCheckBoxBorderFocused}" StrokeDashArray="2 2" StrokeThickness="1"/>
				<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="5,-0.7,0,0" Style="{DynamicResource ControlFont}" VerticalAlignment="Center" TextElement.Foreground="{TemplateBinding Foreground}" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" RecognizesAccessKey="True"/>
			</Grid>
		</BulletDecorator>
		<ControlTemplate.Triggers>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsMouseOver" Value="True"/>
					<Condition Property="IsMouseCaptured" Value="False"/>
					<Condition Property="IsChecked" Value="True"/>
				</MultiTrigger.Conditions>
				<Setter Property="Visibility" TargetName="Path" Value="Visible"/>
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsMouseOver" Value="True"/>
					<Condition Property="IsMouseCaptured" Value="False"/>
					<Condition Property="IsChecked" Value="False"/>
				</MultiTrigger.Conditions>
				<Setter Property="Visibility" TargetName="Path" Value="Visible"/>
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsMouseOver" Value="True"/>
					<Condition Property="IsMouseCaptured" Value="False"/>
					<Condition Property="IsChecked" Value="{x:Null}"/>
				</MultiTrigger.Conditions>
				<Setter Property="Visibility" TargetName="IndeterminateHover" Value="Visible"/>
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsFocused" Value="True"/>
					<Condition Property="Content" Value=""/>
				</MultiTrigger.Conditions>
				<Setter Property="Visibility" TargetName="RectangleContent" Value="Collapsed"/>
				<Setter Property="Visibility" TargetName="RectangleBullet" Value="Visible"/>
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsFocused" Value="True"/>
					<Condition Property="Content" Value="{x:Null}"/>
				</MultiTrigger.Conditions>
				<Setter Property="Visibility" TargetName="RectangleContent" Value="Collapsed"/>
				<Setter Property="Visibility" TargetName="RectangleBullet" Value="Visible"/>
			</MultiTrigger>
			<Trigger Property="IsMouseCaptured" Value="True">
				<Setter Property="Background" TargetName="Border" Value="{DynamicResource BrushCheckBoxBackgroundPressed}"/>
			</Trigger>
			<Trigger Property="IsChecked" Value="False">
				<Setter Property="Visibility" TargetName="CheckMark" Value="Collapsed"/>
				<Setter Property="Visibility" TargetName="Indeterminate" Value="Collapsed"/>
			</Trigger>
			<Trigger Property="IsChecked" Value="True">
				<Setter Property="Visibility" TargetName="CheckMark" Value="Collapsed"/>
			</Trigger>
			<Trigger Property="IsChecked" Value="{x:Null}">
				<Setter Property="Visibility" TargetName="Indeterminate" Value="Collapsed"/>
			</Trigger>
			<Trigger Property="IsEnabled" Value="False">
				<Setter Property="Foreground" Value="{DynamicResource BrushCheckBoxForegroundDisabled}"/>
				<Setter Property="BorderBrush" TargetName="Border" Value="{DynamicResource BrushCheckBoxBorderDisabled}"/>
				<Setter Property="Background" TargetName="Border" Value="{DynamicResource BrushCheckBoxBackgroundDisabled}"/>
				<Setter Property="Fill" TargetName="CheckMark" Value="{DynamicResource BrushCheckBoxCheckMarkFillDisabled}"/>
				<Setter Property="Fill" TargetName="Indeterminate" Value="{DynamicResource BrushCheckBoxCheckMarkFillDisabled}"/>
			</Trigger>
		</ControlTemplate.Triggers>
	</ControlTemplate>
	<Style TargetType="{x:Type TreeView}">
		<Setter Property="Border.BorderThickness" Value="1" />
		<Setter Property="Padding" Value="4" />
	</Style>

	<!-- INI CONFIGURATION MANAGER -->
	<Style x:Key="TreeViewConfiguration" TargetType="{x:Type TreeView}">
		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
		<Setter Property="BorderBrush" Value="{x:Static Microsoft_Windows_Themes:ClassicBorderDecorator.ClassicBorderBrush}"/>
		<Setter Property="BorderThickness" Value="2"/>
		<Setter Property="Padding" Value="1"/>
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
		<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
		<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TreeView}">
					<Border CornerRadius="6,6,6,6" BorderBrush="#FF8E99AD" BorderThickness="1,1,1,1">
						<Border.Background>
							<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
								<GradientStop Color="#7FFFFFFF" Offset="0"/>
								<GradientStop Color="#7F8E99AD" Offset="0.35"/>
							</LinearGradientBrush>
						</Border.Background>
						<ScrollViewer Background="#00FFFFFF" Focusable="false" Padding="{TemplateBinding Padding}" CanContentScroll="false" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" Foreground="#FF333333">
							<ItemsPresenter/>
						</ScrollViewer>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="TreeViewItemConfiguration" TargetType="{x:Type TreeViewItem}">
		<Setter Property="Background" Value="Transparent"/>
		<Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
		<Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
		<Setter Property="Padding" Value="3,3,3,3"/>
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
		<Setter Property="FocusVisualStyle" Value="{StaticResource TreeViewItemFocusVisualConfiguration}"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type TreeViewItem}">
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition MinWidth="19" Width="Auto"/>
							<ColumnDefinition Width="Auto"/>
							<ColumnDefinition Width="*"/>
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto"/>
							<RowDefinition/>
						</Grid.RowDefinitions>
						<Path Stretch="Fill" StrokeLineJoin="Round" Stroke="#FF0D3611" Data="F1 M 733.302,546.168L 743.659,546.168L 743.659,539.774L 753.497,550.001L 743.659,560.229L 743.659,553.835L 733.302,553.835C 733.134,553.835 732.997,553.611 732.997,553.335L 732.997,546.668C 732.997,546.392 733.134,546.168 733.302,546.168 Z " HorizontalAlignment="Right" Margin="0,0,-503.997,-499.444" x:Name="path1" VerticalAlignment="Bottom" Width="21.5" Height="21.455" Grid.Column="2" Grid.Row="1">
							<Path.Fill>
								<LinearGradientBrush StartPoint="0.514388,0.572263" EndPoint="0.517437,0.26366">
									<GradientStop Color="#FF114E0D" Offset="0"/>
									<GradientStop Color="#FF13740C" Offset="0.534694"/>
									<GradientStop Color="#FF159A0B" Offset="1"/>
								</LinearGradientBrush>
							</Path.Fill>
						</Path>
						<ToggleButton x:Name="Expander" Style="{StaticResource ExpandCollapseToggleStyleConfiguration}" ClickMode="Press" IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}"/>
						<Border SnapsToDevicePixels="true" x:Name="Bd" Grid.Column="1" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1,1,1,1" Padding="2,0,2,0">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" x:Name="PART_Header" ContentSource="Header"/>
						</Border>
						<ItemsPresenter x:Name="ItemsHost" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1"/>
					</Grid>


					<ControlTemplate.Triggers>
						<Trigger Property="IsExpanded" Value="false">
							<Setter Property="Visibility" TargetName="ItemsHost" Value="Collapsed"/>
							<Setter Property="Padding" TargetName="Bd" Value="2,0,2,0"/>
							<Setter Property="BorderThickness" TargetName="Bd" Value="1,1,1,1"/>
						</Trigger>
						<Trigger Property="HasItems" Value="false">
							<Setter Property="Padding" TargetName="Bd" Value="2,0,2,0"/>
							<Setter Property="BorderThickness" TargetName="Bd" Value="1,1,1,1"/>
							<Setter Property="Visibility" TargetName="Expander" Value="Collapsed"/>
							<Setter Property="Grid.Row" TargetName="path1" Value="0"/>
							<Setter Property="HorizontalAlignment" TargetName="path1" Value="Stretch"/>
							<Setter Property="VerticalAlignment" TargetName="path1" Value="Stretch"/>
							<Setter Property="Margin" TargetName="path1" Value="0,0,0,0"/>
							<Setter Property="Grid.Column" TargetName="path1" Value="0"/>
							<Setter Property="Width" TargetName="path1" Value="13"/>
							<Setter Property="Height" TargetName="path1" Value="13"/>
						</Trigger>
						<Trigger Property="IsSelected" Value="true">
							<Setter Property="CornerRadius" TargetName="Bd" Value="3,3,3,3"/>
							<Setter Property="Margin" TargetName="PART_Header" Value="0,0,0,0"/>
							<Setter Property="Background" TargetName="Bd">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFE7ECEF" Offset="0"/>
										<GradientStop Color="#FFBCC1C5" Offset="1"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter Property="BorderThickness" TargetName="Bd" Value="1,1,1,1"/>
							<Setter Property="BorderBrush" TargetName="Bd" Value="#FF84898E"/>
							<Setter Property="Padding" TargetName="Bd" Value="2,0,2,0"/>
						</Trigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsSelected" Value="true"/>
								<Condition Property="IsSelectionActive" Value="false"/>
							</MultiTrigger.Conditions>
							<Setter Property="Background" TargetName="Bd">
								<Setter.Value>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFFFFFFF" Offset="0"/>
										<GradientStop Color="#FFD9DADC" Offset="1"/>
									</LinearGradientBrush>
								</Setter.Value>
							</Setter>
							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
							<Setter Property="CornerRadius" TargetName="Bd" Value="3,3,3,3"/>
							<Setter Property="BorderBrush" TargetName="Bd" Value="#FF84898E"/>
						</MultiTrigger>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
							<Setter Property="OpacityMask" TargetName="Expander" Value="{x:Null}"/>
							<Setter Property="Opacity" TargetName="Expander" Value="1"/>
						</Trigger>
					</ControlTemplate.Triggers>


				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="TreeViewItemFocusVisualConfiguration">
		<Setter Property="Control.Template">
			<Setter.Value>
				<ControlTemplate>
					<Rectangle/>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="ExpandCollapseToggleStyleConfiguration" TargetType="{x:Type ToggleButton}">
		<Setter Property="Focusable" Value="False"/>
		<Setter Property="Width" Value="19"/>
		<Setter Property="Height" Value="17"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type ToggleButton}">
					<Grid Width="15" Height="15">
						<Rectangle x:Name="torre" Width="8" Height="14" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Stroke="#FF444444" Margin="6.886,0,0,1.064">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="0.5,0.826201" EndPoint="0.5,0.173799">
									<GradientStop Color="#FFD2D5D1" Offset="0"/>
									<GradientStop Color="#FFEBEEEB" Offset="1"/>
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<Rectangle x:Name="sinal_vermelho" Stretch="Fill" Canvas.Left="67.012" Canvas.Top="274.999" Margin="7.261,0,1.625,3.853" VerticalAlignment="Bottom" Height="2">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="0.499999,1.78572" EndPoint="0.499999,-0.785713">
									<GradientStop Color="#FFA52626" Offset="0.458333"/>
									<GradientStop Color="#FFCF989E" Offset="0.759259"/>
									<GradientStop Color="#FFFFFFFF" Offset="1"/>
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<Rectangle x:Name="led_azul" Width="3" Stretch="Fill" Fill="#FF7EAFB7" Canvas.Left="67.011" Canvas.Top="87.734" HorizontalAlignment="Right" Margin="0,3.777,1.667,6.787"/>
						<Path x:Name="pedomonitor" Height="4" Stretch="Fill" StrokeThickness="0.7" StrokeLineJoin="Round" Stroke="#FF444444" Fill="#FFDBDFDA" Data="F1 M 93.5463,308.975L 127.286,308.975L 127.286,266.977L 218.032,266.977L 218.032,308.975L 253.938,308.975L 253.938,359.972L 93.5463,359.972L 93.5463,308.975 Z " Margin="3,0,5.886,0" VerticalAlignment="Bottom"/>
						<Rectangle x:Name="monitor" Width="12" Height="10" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Stroke="#FF444444" Margin="0,2,2.886,3.064">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="0.5,1.14712" EndPoint="0.5,-0.147116">
									<GradientStop Color="#FFC9CCC8" Offset="0"/>
									<GradientStop Color="#FFFFFFFF" Offset="1"/>
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<Rectangle x:Name="tela_monitor" Width="8" Height="6" Canvas.Left="53.9973" Canvas.Top="52.4974" Stretch="Fill" StrokeThickness="0.7" StrokeLineJoin="Round" Stroke="#FF437E1B" Margin="2,4,4.886,5.064">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="0.5,1.23242" EndPoint="0.5,-0.232419">
									<GradientStop Color="#FFC5F1A7" Offset="0.361111"/>
									<GradientStop Color="#FF8AD457" Offset="1"/>
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>

					</Grid>
					<ControlTemplate.Triggers>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style TargetType="{x:Type Controls:SimpleCheckBox}" BasedOn="{StaticResource CheckBoxSetup}" />
	<!-- FIM CONFIGURATION MANAGER -->
</ResourceDictionary>